<extend name="Layout/dialog" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">银行信息管理</block>
<block name="controller">编辑银行信息</block>
<block name="action">银行信息管理</block>
<block name="desc"></block>
<block name="content">
<div class="box box-danger">
	<div class="box-header with-border">
		<h3 class="box-title">编辑银行信息</h3>
	</div>
	<notempty name="data">
		<form class="form-horizontal" action="{:U('save')}" method="post" rel-action="form" rel-success="reload()">
			<div class="box-body">
				<div class="form-group">
					<label class="col-sm-2 control-label"><span class="text-red">*</span>渠道</label>
					<div class="col-sm-10">
						<select class="form-control" rel-action="select" name="bank_channel">
							<option value="">请选择渠道</option>
							<volist name="map.channel" id="item">
							<if condition="$key == $data['bank_channel']">
								<option value="{$key}" selected>{$item}</option>
							<else />
								<option value="{$key}">{$item}</option>
							</if>
							</volist>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><span class="text-red">*</span>银行名称</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="title" value="{$data.bank_title}" placeholder="请输入银行名称"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><span class="text-red">*</span>银行编号</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="code" value="{$data.bank_code}" placeholder="请输入银行编号"  autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">排序</label>
					<div class="col-sm-10">
						<input type="number" class="form-control" name="order" value="{$data.bank_order}" placeholder="请填写整数，数字越小越靠前" autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">状态</label>
					<div class="col-sm-10 radio">
						<label>
							<if condition="$data.bank_state == 'NORMAL'">
								<input type="radio" name="state" value="1" checked="checked">正常
							<else />
								<input type="radio" name="state" value="1">正常
							</if>
						</label>
						<label>
							<if condition="$data.bank_state == 'DISABLE'">
								<input type="radio" name="state" value="0" checked="checked">禁用
							<else />
								<input type="radio" name="state" value="0">禁用
							</if>
						</label>
					</div>
				</div>
			</div>
			<input type="hidden" name="id" value="{$data.bank_id}">
			<div class="box-footer">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">保存</button>
					<button type="button" class="btn btn-default" rel-action="dialog-close">关闭</button>
				</div>
			</div>
		</form>
	</notempty>
	<empty name="data">
	<div class="box-body">
		<div class="alert alert-error alert-dismissible">
			<h4><i class="icon fa fa-warning"></i>暂无记录</h4>
			参数有误
		</div>
	</div>
	</empty>
</div>
</block>